		<script type="text/javascript">
 			$(function(){
 	 			$('#dateon').datepicker({changeYear: true,changeMonth:true ,showButtonPanel: true,yearRange:"150:2020"});
 	 			$('#dateoff').datepicker({changeYear: true,changeMonth:true ,showButtonPanel: true,yearRange:"150:2020"});
 			});
 		</script>
<form action="<?php echo $this->url(array("action"=>"add")) ?>" method="post" id="insert-form" enctype="multipart/form-data">
   
                <div class="form-left">
                    <label for="CatName">Tên danh mục: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="CatName" class="txt" id="CatName" />
                </div>
                
                <div class="form-left">
                    <label for="Position">Danh mục cha: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                  	<select name="psize" id="psize" default="1">
	      <?php
foreach ( $this->allCat as $cat ) {
																					echo "<option value='" . $cat ["ID"] . "'>" . $cat ["CAT_NAME"] . "</option>";
																				}
																				?>
																					<option value="0" selected="selected">Không chọn</option>
</select> 
                </div>
 
				 	<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/ckeditor/ckeditor.js"></script>
					<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/ckeditor/_samples/sample.js"></script>

                <div class="form-left">
                    <label for="Desc">Mô tả: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <textarea name="Desc" id="editor" class="txt editor" cols="100" rows="200" id="desc"></textarea>
                    <script type="text/javascript">CKEDITOR.replace( 'editor' );</script>

                </div>
                
                <div class="form-left">
                    <label for="IMG">Hình ảnh: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="file" name="Img" class="txt" id="Img" />
                    <?php echo $this->errImg?>
                </div>
                
                <div class="form-left">
                    <label for="stt">Trạng thái: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <select name="Stt" id="theme">
                        <option value="1">Kích hoạt</option>
                        <option value="0">Không kích hoạt</option>
                    </select>
                </div>
               
                <div class="clear" style="text-align:right; width:372px">
                	<INPUT TYPE="BUTTON" style="float:right;" VALUE="Go Back" ONCLICK="history.go(-1)">
                    <input type="submit" value="Save" style="float:right" />
                </div>
 			</form>
 			<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/js/tablesort.js"></script>
    		<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/js/jquery.nyromodal-1.6.2.pack.js"></script>
    		<script type="text/javascript" charset="utf-8" src="<?php echo $this->baseUrl()?>/public/js/jquery.uniform.min.js" ></script>